﻿using AfrikDotnetWebSite.Models;
using System.Collections.Generic;
using System.Linq;

namespace AfrikDotnetWebSite.Helpers
{
    public class SponsorHelper
    {
        public static List<Sponsor> GetSponsors()
        {
            using (AfrikDotnetContext db = new AfrikDotnetContext())
            {
                return db.Sponsors.Where(s => s.IsActive == true).ToList();
            }
        }
    }
}